package org.senseframework.support.example.mybatis.domain;


import org.senseframework.support.orm.mybatis.annotations.Column;
import org.senseframework.support.orm.mybatis.annotations.Id;
import org.senseframework.support.orm.mybatis.annotations.MappedSuperclass;
import org.senseframework.support.orm.mybatis.definition.GenerationType;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Configurable;

/**
 * Created by lanjian
 */
@MappedSuperclass
@Configurable(autowire = Autowire.BY_TYPE)
public abstract class Basic {
    @Id(strategy = GenerationType.IDENTITY)
    @Column(column = "id")
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
